package com.yefu.springcloud.dao;

import com.yefu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface PaymentDao {
    //创建一个支付订单
    public int create(Payment payment);

    //查询一个支付订单
    public Payment getPaymentById(@Param("id") Long id);

    //更新支付订单
    public  int updatePayment(Payment payment);

    //删除订单
    public int deletePayment(@Param("id") Long id);
}
